package com.yanmaohu.yulia.bean;

public final class ImplicitlyTypedValueSpecification implements
        DefaultOption,
        ContextuallyTypedValueSpecification,
        CastOperand {

    private int beginIndex;
    private int endIndex;
    private boolean null_;
    private boolean array;
    private boolean multiset;

    public ImplicitlyTypedValueSpecification(int beginIndex,
                                             int endIndex,
                                             boolean null_,
                                             boolean array,
                                             boolean multiset) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.null_ = null_;
        this.array = array;
        this.multiset = multiset;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNull() {
        return null_;
    }

    public boolean isArray() {
        return array;
    }

    public boolean isMultiset() {
        return multiset;
    }

}
